package com.guoqi.bridgedemo

import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        var intent = Intent(this@MainActivity, WebViewTestActivity::class.java)
        btn1.setOnClickListener {
            intent.putExtra("type", 1)
            startActivity(intent)
        }
        btn2.setOnClickListener {
            intent.putExtra("type", 2)
            startActivity(intent)
        }
        btn3.setOnClickListener {
            intent.putExtra("type", 3)
            startActivity(intent)
        }
        btn4.setOnClickListener {
            intent.putExtra("type", 4)
            startActivity(intent)
        }
    }


}
